package com.yipi.yupicturebackend.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yipi.yupicturebackend.entity.User;
import com.yipi.yupicturebackend.model.VO.LoginUserVO;

import javax.servlet.http.HttpServletRequest;

/**
* @author WJY
* @description 针对表【user(用户)】的数据库操作Service
* @createDate 2025-02-13 16:50:39
*/

public interface UserService extends IService<User> {
    /**
     * 用户注册
     */
    long UserRegister(String userAccount, String passWord, String checkPassward);

    /**
     * 用户登录
     */
    LoginUserVO userLogin(String userAccount, String userPassword, HttpServletRequest request);

    /**
     * 用户注销
     */
    boolean userLogout(HttpServletRequest request);

    User getLoginUser(HttpServletRequest request);

    LoginUserVO getLoginUserVO(User loginUser);
}
